package com.tanhua.server.controller;


import com.tanhua.model.vo.SoulVo;
import com.tanhua.server.server.TestSoulService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RequestMapping("/testSoul")
@RestController
public class TestSoulController {

    @Autowired
    private TestSoulService testSoulService;

    /**
     * 测灵魂-问卷列表
     */
    @GetMapping
    public ResponseEntity SoulList(){
       List<SoulVo> list =  testSoulService.SoulList();
       return ResponseEntity.ok(list);
    }
}
